package com.joaosavio.example.customer_ws;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;

import com.joaosavio.example.HelloWorldService;
import com.joaosavio.example.HelloWorldServiceImpl;

@Path("/hello")
public class HelloWorld {

	private HelloWorldService helloWorldService = new HelloWorldServiceImpl();

	@GET
	@Produces("text/plain")
	public String getHello(@QueryParam("name") String name) {
		return helloWorldService.helloWorld(name);
	}
}